package com.dingreading.cloud.soms.service;

import com.dingreading.cloud.common.util.PageUtil;
import com.dingreading.cloud.soms.entity.CaTimes;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;

import java.util.List;

/**
 * 服务层。
 *
 * @author Administrator
 * @since 2023-11-22
 */
public interface CaTimesService extends IService<CaTimes> {

    Page<CaTimes> pageList(PageUtil pageUtil, String storeUid, String keyword, Integer enabled);

    List<CaTimes> getByStoreUid(String storeUid, String keyword, Integer enabled);

    CaTimes getBean(String storeUid, Long id);

    boolean haveTime(String storeUid, Long id, String beginTime, String endTime);

    int dropBean(String storeUid, Long id);

    boolean updateEnabled(String storeUid, Long id, Integer enabled, String staffUid, String staffName);

}
